/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jgutierrez
 */
public class EstructuraIfElse {
    public static void main (String[] args){
           float compra=500;
           float aPagar=0;
           if (compra>300) {
              aPagar = compra - (compra *.20f);
           }
           else {
               aPagar=compra;
              }
          System.out.println("El total a pagar es de " + aPagar);
    }
}
